package com.swh.service.impl;

import com.swh.dao.UserDao;
import com.swh.entity.User;
import com.swh.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: swh
 * @Description:
 * @Date: 2020/12/9 11:02
 * @Version: 1.0
 */
@Service
public class  UserServiceImpl implements UserService {
    

    @Autowired
    private UserDao userDao;

    @Override
    public User findById(Integer id) {
        System.out.println("查询id为"+id+"的信息");
        return userDao.findById(id);
    }


}
